package com.lzw.property;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 配置文件参数实体
 * @author LZW
 */
@ConfigurationProperties(prefix = "lzwserver2")
public class ServerProperties {
    //服务端口
    private int port = 9090;
    //服务ip
    private String ip = "127.0.0.1";

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
}
